package com.hmall.cart.client;

import com.hmall.cart.domain.dto.ItemDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;


/**
 * 商品微服务的远程调用的feign接口
 */
@FeignClient("item-service")
public interface ItemClient {

    /**
     * 定义查询的方法
     */
    @GetMapping("/items")
    public List<ItemDTO> queryItemByIds(@RequestParam("ids") List<Long> ids);

}
